'use strict';

angular.module('detail', ['ngRoute','ngAnimate'])

    .config(['$routeProvider', function($routeProvider) {
        $routeProvider.when('/detail', {
            templateUrl: 'detail/detail.html',
            controller: 'detailCtrl'
        });
    }])

    .controller('detailCtrl', function($routeParams,$http,$scope) {

        //console.log(didObj.did);
        $http.get("app/data/dish_listbydid.php?did="+$routeParams.did).success(function(data){
            $scope.dishDetail=data;
        });
    });